package com.dubbo.consumer.controller;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sc.love.boot.pojo.User;
import sc.love.boot.service.UserService;

@RestController
public class DubboService {

    @Reference
    private UserService userService;


    @RequestMapping("/dubbo")
    public User DubboTest(String userNumber, String password) {
        User user = userService.checkUser(userNumber, password);
        return user;
    }
}
